package com.ityedao.随机数;

import java.util.Random;

public class RandomCase {
    public static void main(String[] args) {
        // Random 作用：用于在程序中获得随机数的技术
        Random r = new Random();
        int number = r.nextInt(10);
        System.out.println("随机生成了：" + number);
    }
}
